﻿@model IEnumerable<Project.Domain.Entities.Match>
@using Project.Resource.Home
@using Framework.Util.Helpers 
<div class="title grey headerAll" style="height: 25px; padding-left:5px; width:437px; font-size: 14px; font-weight: bold; color: #01B3F1; text-align: left; padding-top: 9px;" >
    @MenuResource.MatchUp
</div> 
<div id="match_inplay_content">
    <table id="match" class="ui-widget ui-widget-content">
        <thead>
            <tr class="ui-widget-header ">
                <th style="width:110px;">Time</th>
                <th style="width:200px; text-align:center;">Match</th>
                <th style="width:100px; text-align:center;">League</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td style="padding-left:3px; color:#0D6AA9 !important; font-size:12px; font-family:Verdana,Arial,Tahoma,sans-serif;">@string.Format("{0:dd/MM}", item.StartTime) @item.TimePlay</td>
                    <td style="padding-left:10px; color:#0D6AA9 !important; text-align:left; font-size:12px;">@item.HomeTeam.TeamName <text style="color:red;">vs</text> @item.AwayTeam.TeamName</td>
                    <td style="padding-left:10px; color:#0D6AA9 !important; text-align:left; font-size:12px;">@item.League.NameLeague</td>
                </tr>                             
            }
            <tr>
                <td></td>
                <td></td>
                <td>
                    <div>
                        <a href="@Url.Action("Index", "Sport")" style=" text-align:right; color:#535353; font-size:11px; font-weight:bold; text-decoration:none;">
                            View more »
                        </a>
                    </div>
                </td>
            </tr>

        </tbody>
    </table>
</div>

